package com.htl.exampro.question.api;

import com.htl.exampro.base.model.ServerResponse;
import com.htl.exampro.question.pojo.vo.QuestionTypeVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * AnswerApi
 *
 * @author hehehe
 * @since 2025-05-25
 */
@FeignClient(name = "exam-pro-question", contextId = "QuestionTypeApi", path = "/question/questionType")
public interface QuestionTypeApi {

    @GetMapping("/v1/queryAllQuestionType")
    ServerResponse<List<QuestionTypeVO>> queryAllQuestionType();

    @PostMapping("/v1/saveQuestionType")
    ServerResponse<Void> saveQuestionType(@RequestBody @Validated QuestionTypeVO questionTypeVO);
}
